<?php

namespace common\jobs;

use Carbon\Carbon;
use common\Tools;
use yii\base\BaseObject;
use yii\queue\JobInterface;

class DemoJob extends BaseObject implements JobInterface
{
    public $id;

    public function execute($queue)
    {
        Tools::yiiLog(Carbon::now()->toDateTimeString()." ID:{$this->id}");
    }
}